<script setup lang="ts">
import { ref } from 'vue'
var top_text = "<h3>张三</h3>";
var find_text = ref("");


</script>
<template>
  <div class="top">
    <input type="text" v-model="find_text" placeholder="搜一搜" />
    <button>确认</button>
    <div class="top_h3" v-html="top_text"></div>
  </div>
</template>

<style scoped>
.top {
  height: 50px;
  background-color: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.top {
  height: 53px;
  width: 100%;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}
.top input {
  display: block;
  padding-left: 5px;
  color: #666;
  width: 150px;
  height: 32px;
  border-radius: 10px;
}
.top button {
  display: block;
  padding: 0 5px;
  color: #666;
  width: 50px;
  height: 35px;
  border-radius: 10px;
  border: none;
}
.top_h3 {
  width: 1080px;
  font-weight: 100;
  line-height: 53px;
  color: #f2f2f2;
  text-align: end;
}
</style>